﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.TextAreaAttribute
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Attribute to make a string be edited with a height-flexible and scrollable text area.</para>
  /// </summary>
  [AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
  public sealed class TextAreaAttribute : PropertyAttribute
  {
    /// <summary>
    ///   <para>The minimum amount of lines the text area will use.</para>
    /// </summary>
    public readonly int minLines;
    /// <summary>
    ///   <para>The maximum amount of lines the text area can show before it starts using a scrollbar.</para>
    /// </summary>
    public readonly int maxLines;

    /// <summary>
    ///   <para>Attribute to make a string be edited with a height-flexible and scrollable text area.</para>
    /// </summary>
    /// <param name="minLines">The minimum amount of lines the text area will use.</param>
    /// <param name="maxLines">The maximum amount of lines the text area can show before it starts using a scrollbar.</param>
    public TextAreaAttribute()
    {
      this.minLines = 3;
      this.maxLines = 3;
    }

    /// <summary>
    ///   <para>Attribute to make a string be edited with a height-flexible and scrollable text area.</para>
    /// </summary>
    /// <param name="minLines">The minimum amount of lines the text area will use.</param>
    /// <param name="maxLines">The maximum amount of lines the text area can show before it starts using a scrollbar.</param>
    public TextAreaAttribute(int minLines, int maxLines)
    {
      this.minLines = minLines;
      this.maxLines = maxLines;
    }
  }
}
